<template>
    <div style="background-color: hotpink;">
        我是女儿
        <button @click="$emit('girl',20000)">老登爆金币</button>
        <p>我获得了五千奖学金， 给老爸爆点金币<button @click.once="store.increment(20)">金币</button></p>
    </div>
</template>

<script>
import { useMyStore } from '@/store/myStore';

export default {
    data() {
        return {
            store:useMyStore()
        }
    },
}
</script>